#thumbNails{
	text-align:center;
	padding:5px;
	margin-bottom:0px;
}




#photoGalleyTourTileSpacer {
    width: 25%;
    height: 100%;
    display: none;  /* hidden by default, if browser can display 360 then javascript sets to inline-block later.  Only need this spacer if the switch to 360 button is showing */
}



.modalSwitchButton{

    border: 2px #2E6FAF solid;
    padding: 0 10px 0 10px;
    border-radius: 22px;
    margin: 5px;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: bold;
	color:#2E6FAF;
    display: none;  /* hidden by default, if browser can display 360 then javascript sets to inline-block later */
    float: right;
    max-width:275px;
	line-height:198%;
}

.modalSwitchButton::before{
    content: "\f054";
    font-family:'Font Awesome 6 Pro';
    font-size: 12px;
    color: #2E6FAF;
    font-weight: 600;
    margin-right: 9px;
    line-height: 28px;
    text-decoration: none;
}

#selectedCaption{
	position:absolute;
    /* bottom:94px; */
    bottom: 0px;
	left:0;
	width:98%;  /* So long text fits without being cut off */
	background:black;
	background:rgba(0,0,0,0.5);
    /* padding:10px; */
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 10px;
    padding-bottom: 10px;
}
#selectedCaption span{
	color:white;
}



#inline_content > div:nth-child(1){
    position: relative;
    text-align: center;
}


.modalHeader{
	text-align:center;
	font-size: 16px;
	font-weight: bold;
	color: #2a6dbb;
    margin:13px;
    display: inline-block;
}


.modalButton{
    margin: 5px;
    background: #2a6dbb;
    border: none;
    border-radius: 10px;
    padding: 5px 15px 5px 15px;
    color: white;
    outline: none;
}

.modalCaption{
	display:none;
}

.modalNav{
	text-align:center;
	background:#e6e6e6;
	padding:5px;
	position:relative;
}
.modalButton.active {
	background: #61045f;
}
.modalButton:hover{
    background: #61045f;
}
.modalThumbnail{
	width:15%;
	margin:5px;
	height:auto;
	max-height:69px;
	border:1px grey solid;
	padding:2px;
	cursor:pointer;
}
.selected{
	background:#61045f;
}


/*new */
#selectedPicture {
    position: relative;
}



#selectedPicture img {
	width: 800px;
	height:450px;
}
#rightPanel{
    position: absolute;
    height: 450px;
    width: 65px;
    /*top: 85px; */
    top: 0px;
    right: 0;
    display:none;
    /*display:table;*/
    cursor:pointer;
}
#leftPanel{
	position: absolute;
    height: 450px;
    width: 65px;
    /*top: 85px; */
    top: 0px;
    left: 0;
    cursor:pointer;
    /*display:table;*/
    display:none;
}
#rightPanel:hover .circleRight, #leftPanel:hover .circleLeft{
	background:#61045f;
}

.circleRight{
    height: auto;
    padding: 17px;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background: #276EBE;
    position: absolute;
    border: none;
    vertical-align: middle;
    top: 49%;
    left: 25%;
    border: 3px solid white;
}
.circleRight:before{
	content: '';
    display: block;
    border-top: solid 8px transparent;
    border-left: solid 11px #FFF;
    border-bottom: solid 8px transparent;
    position: absolute;
    top: 58%;
    left: 48%;
    margin: -10px 0 0 -3px;
}
.circleLeft{
    height: auto;
    padding: 17px;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background: #276EBE;
    position: absolute;
    border: none;
    vertical-align: middle;
    top: 49%;
    left: 15%;
    border: 3px solid white;
}
.circleLeft:before{
	content: '';
    display: block;
    border-top: solid 8px transparent;
    border-right: solid 11px #FFF;
    border-bottom: solid 8px transparent;
    position: absolute;
    top: 58%;
    left: 38%;
    margin: -10px 0 0 -3px;
}

@media screen and (max-width: 800px){

	#selectedPicture img {
		width: 500px;
		height:250px;
    }
    /*
	#selectedCaption{
		bottom:69px;
    }
    */
	#leftPanel, #rightPanel{
		height:250px;
	}
	.modalThumbnail{
		max-height:43px;
    }
    
    .modalHeader {
        max-width: 65%;
    }



    #photoGalleyTourTileSpacer {
        width: 10%;
    }


    .modalSwitchButton{
        width: 5%;
        max-width: 50px;
        min-width: 30px;
        padding: 0px 0px 0px 0px; 
        font-size: 0;
   
        /*
        font-size: 0;
        width: 30px;
        margin: auto;
        text-align: center;
        margin-top: 4px;
        margin-top: -7px; 
        padding: 0px 0px 0px 0px;
        display: inline;
        */
    }
    .modalSwitchButton::before{
        margin-right: 0px;
    }
}		
@media screen and (max-width: 500px){
	#selectedPicture img {
		width: 100%;
		height:auto;
		/*max-height:180px;
		padding-bottom:10px; */
    }
    


	.modalThumbnail{
		max-height:28px;
	}
	#thumbNails{
		display:none;
	}
	#selectedCaption{
        /* bottom:11px; */
        bottom: 0px;
	}
	
	.circleLeft, .circleRight{
		padding:14px;
	}

}
@media screen and (max-width: 375px){
    .circleRight, .circleLeft{
        top:30%;
    }

}
/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden; -webkit-transform: translate3d(0,0,0);}
#cboxWrapper {max-width:none;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}

/* 
    User Style:
    Change the following styles to modify the appearance of Colorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:#000;}
#colorbox{outline:0;}

#cboxContent{background:#fff; overflow:visible;}
.cboxIframe{background:#fff;}
#cboxError{padding:50px; border:1px solid #ccc;}
#cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
#cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}

/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}

#cboxPrevious{left:0px; background-position: -51px -25px;}
#cboxPrevious:hover{background-position:-51px 0px;}
#cboxNext{left:27px; background-position:-75px -25px;}
#cboxNext:hover{background-position:-75px 0px;}
#cboxClose{right:0; background-position:-100px -25px;}
#cboxClose:hover{background-position:-100px 0px;}
#cboxClose{
    display:none;
}
.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}



/* Accessibility Improvements */

#inline_content > div.modalNav > button.modalButton:focus {
   font-size: 15px;
   text-decoration: underline;
    
}


.modalThumbnail:focus {
    border: 2px #2E6FAF solid;
    box-sizing: border-box;
}